﻿<%@ Page Language="C#" MasterPageFile="~/Template/Detail.master" AutoEventWireup="true"
    CodeFile="VehicleApplyList.aspx.cs" Inherits="Car_VehicleApplyList" Title="Untitled Page" %>

<%@ Register Src="~/Control/ListHeader.ascx" TagName="ListHeader" TagPrefix="wsc" %>
<%@ Register Src="~/Control/TabberHeader.ascx" TagName="TabberHeader" TagPrefix="wsc" %>
<%@ Register Assembly="Wicresoft.Common" Namespace="Wicresoft.Web.UI.WebControls"
    TagPrefix="wsc" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="Server">
    <style type="text/css">
        .TableItem { background-color: #FBFBFB; text-align: center; padding: 3px; }
        strong { color: #666666; font-family: Verdana,Arial,Helvetica,sans-serif; }
        .hide { display: none; }
    </style>

    <script>
        function openView(obj) {

            window.open('VehicleApplyView1.aspx?ID=' + obj.parentNode.parentNode.parentNode.childNodes[0].childNodes[0].innerHTML);
        }
    </script>

</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ListToolBarPlaceHolder" runat="Server">
</asp:Content>
<asp:Content ID="Content3" ContentPlaceHolderID="TitleContentPlaceHolder" runat="Server">
</asp:Content>
<asp:Content ID="Content4" ContentPlaceHolderID="InfoContentPlaceHolder" runat="Server">
</asp:Content>
<asp:Content ID="Content5" ContentPlaceHolderID="TextContentPlaceHolder" runat="Server">
</asp:Content>
<asp:Content ID="Content6" ContentPlaceHolderID="TabberContentPlaceHolder" runat="Server">
    <wsc:TabberHeader ID="thInfo" runat="server" DivID="div1" Title="详细信息" Selected="true" />
</asp:Content>
<asp:Content ID="Content7" ContentPlaceHolderID="Div1ContentPlaceHolder" runat="Server">
    <div style="padding-top: 8px; width: 99%; overflow: auto;" id="EditPageForm">
        <wsc:DataGrid ID="dgApply" runat="server" CssClass="Table" Width="98%" AllowCustomPaging="True"
            AutoGenerateColumns="False" AllowPaging="True" AllowSorting="True" FooterCssClass="PageGridHeader"
            HeaderCssClass="PageGridHeader" ItemCssClass="TableAlternatingItem" AlternatingCssClass="TableAlternatingItem"
            ItemOverCssClass="TableMouseOverItem" EditItemCssClass="TableEditItem" PagerCssClass="TablePage"
            PageSize="10" OnOnGetData="dgApply_OnGetData">
            <AlternatingItemStyle CssClass="TableAlternatingItem"></AlternatingItemStyle>
            <FooterStyle CssClass="PageGridHeader"></FooterStyle>
            <ItemStyle CssClass="TableAlternatingItem"></ItemStyle>
            <Columns>
                <wsc:PKColumn Visible="False" DataField="ID">
                </wsc:PKColumn>
                <wsc:NormalColumn SelectString="" DataField="ID" ItemStyle-CssClass="hide" HeaderStyle-CssClass="hide"
                    Width="1%" HeaderText="ID" DataFormatString="" HeaderStyle-HorizontalAlign="Center"
                    Align="Center">
                </wsc:NormalColumn>
                <wsc:NormalColumn SelectString="" DataField="GroupName" Width="10%" HeaderText="部门"
                    DataFormatString="" HeaderStyle-HorizontalAlign="Center" MaxCharCount="20" Align="Center">
                </wsc:NormalColumn>
                <wsc:NormalColumn DataField="ApplicantName" Width="10%" HeaderText="申请人" DataFormatString="<a href='#' onclick='openView(this)'>{0}<a>"
                    SelectString="ApplicantName,ID" HeaderStyle-HorizontalAlign="Center" Align="Center">
                </wsc:NormalColumn>
                <wsc:NormalColumn SelectString="" DataField="StartDate" Width="20%" HeaderText="开始时间"
                    HeaderStyle-HorizontalAlign="Center" DataFormatString="{0:yyyy-MM-dd HH:mm }"
                    Align="Center">
                </wsc:NormalColumn>
                <wsc:NormalColumn SelectString="" DataField="EndDate" Width="20%" HeaderText="结束时间"
                    HeaderStyle-HorizontalAlign="Center" DataFormatString="{0:yyyy-MM-dd HH:mm }"
                    Align="Center">
                </wsc:NormalColumn>
                <wsc:NormalColumn SelectString="" DataField="StartAddress" Width="12%" HeaderText="出发地"
                    HeaderStyle-HorizontalAlign="Center" MaxCharCount="20" DataFormatString="" Align="Center">
                </wsc:NormalColumn>
                <wsc:NormalColumn SelectString="" DataField="Destination" Width="13%" HeaderText="目的地"
                    HeaderStyle-HorizontalAlign="Center" MaxCharCount="8" DataFormatString="" Align="Center">
                </wsc:NormalColumn>
                <wsc:NormalColumn DataField="xiangxi" Width="10%" HeaderText="查看" DataFormatString="<a href='#' onclick='openView(this)'>{0}<a>"
                    SelectString="ApplicantName,ID" HeaderStyle-HorizontalAlign="Center" Align="Center">
                </wsc:NormalColumn>
                <%--  <wsc:NormalColumn SelectString="" DataField="Purpose" Width="25%" HeaderText="事由"
                    DataFormatString="" HeaderStyle-HorizontalAlign="Center" MaxCharCount="10" Align="Left">
                </wsc:NormalColumn>--%>
                <%--   <wsc:NormalColumn SelectString="" DataField="StatusCN" Width="10%" HeaderText="状态" HeaderStyle-HorizontalAlign="Center"
                    DataFormatString="" Align="Center">
                </wsc:NormalColumn>--%>
            </Columns>
            <HeaderStyle CssClass="PageGridHeader"></HeaderStyle>
            <PagerStyle CssClass="TablePage"></PagerStyle>
        </wsc:DataGrid>
    </div>
</asp:Content>
<asp:Content ID="Content8" ContentPlaceHolderID="Div2ContentPlaceHolder" runat="Server">
</asp:Content>
<asp:Content ID="Content9" ContentPlaceHolderID="Div3ContentPlaceHolder" runat="Server">
</asp:Content>
<asp:Content ID="Content10" ContentPlaceHolderID="Div4ContentPlaceHolder" runat="Server">
</asp:Content>
<asp:Content ID="Content11" ContentPlaceHolderID="Div5ContentPlaceHolder" runat="Server">
</asp:Content>
